<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<title>Gears Sample - module LocalServer - ResourceStore</title>
		<script type="text/javascript" src="gears_init.js"></script>
		<script type="text/javascript">
			function init() {
				if (!window.google || !google.gears) {
					alert("Install Gears");
				}
				var permission = google.gears.factory.getPermission("WebDb by Q", "../images/webdb.png");
				if (!permission) {
					alert("No permission");
				}
				
				var localServer = google.gears.factory.create('beta.localserver');
				var store = localServer.createStore('store');
				store.capture('gears_resourcestore.html');
				store.capture('gears_init.js');
			}
		</script>
	</head>
	<body onload="init()">
		This page is available even offline.
	</body>
</html>
